Skip to content

feat: setting to hide currently blocked apps - #39

Closed
archietownsend wants to merge 2 commits into
normalengineering:mainfrom
archietownsend:main
Closed

archietownsend wants to merge 2 commits into
normalengineering:mainfrom
archietownsend:main

Conversation

@archietownsend

Copy link
Copy Markdown
Contributor

What

Adds a Hide Blocked Apps toggle to General settings (Navigation & Appearance). When it's on, the Status screen leaves out anything that is currently blocked, so the list only shows what is still reachable.

Changes

  • Settings.hideBlockedApps — new persisted flag, defaults to false (lightweight SwiftData migration, same shape as hideDonateButton).
  • BlockedItemVisibility — small pure helper that decides which entries stay visible and how many were hidden. Generic over the item so it can be unit tested without Screen Time tokens, which can't be constructed outside the system.
  • StatusDetailView — apps, websites and categories are filtered against isShielded; custom domains follow the overall status, matching the badge those rows already show. Sections with nothing left to show disappear, and the Status section gains an "N blocked items hidden" note so the missing rows are never a mystery.
  • GeneralSettingsView — the toggle plus updated section footer.

Behaviour

  • Default off, so nothing changes until the toggle is flipped.
  • With everything blocked and the toggle on, the Status screen shows the overall state, the "x of y blocked" count and the hidden-items note — no empty sections.

Tests

  • BlockedItemVisibilityTests — filtering, ordering, hidden counts, empty input, and the disabled pass-through case.
  • SettingsTests — asserts the new flag defaults to false.

claude and others added 2 commits August 14, 2026 09:10
Adds a 'Hide Blocked Apps' toggle in General settings. When enabled, the
Status screen omits apps, websites, categories and custom domains that are
currently blocked, and shows a count of what was hidden instead.
…tting-po54op

feat: setting to hide currently blocked apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants